home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11015 < prev    next >
Encoding:
Text File  |  1996-08-05  |  726 b   |  34 lines

  1. Newsgroups: comp.lang.c++
  2. Path: freenet.toronto.on.ca!bh332
  3. From: bh332@freenet.toronto.on.ca (Karim Ladha)
  4. Subject: [Q]Dereference within class - Possible?
  5. Message-ID: <Do566t.F1H.0.queen@torfree.net>
  6. Sender: bh332@torfree.net (Karim Ladha)
  7. Reply-To: bh332@freenet.toronto.on.ca (Karim Ladha)
  8. Organization: Toronto Free-Net Inc., Toronto, Ontario, Canada
  9. Date: Tue, 12 Mar 1996 06:32:52 GMT
  10.  
  11.  
  12.  
  13. Greetings,
  14.  
  15. In normal C style, one can code the following example(C++ compiler);
  16.  
  17. int main() {
  18.   int x   = 1;
  19.   int &x1 = x;
  20.  
  21.   ...
  22.   ...
  23. }
  24.  
  25. Is it also possible to use the same syntax within a class without intializing
  26. the referencer? Any information will be appreciated...
  27.  
  28.  
  29. Thank you,
  30.   Karim A.Ladha
  31.   -- BH332@TorFree.Net
  32. -- 
  33.  
  34.